package com.um.jdy.platform.shop.entity.dto;

import com.um.springboot.starter.orm.params.ListDTO;
import com.um.springboot.starter.orm.params.ListParams;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/**
 * @author xsj
 * 日期 2023/2/15
 * 版权所有 广州优匠科技有限公司
 */
@Data
public class GoodsListDTO extends ListDTO {

    @ApiModelProperty("产品名称")
    private String shopGoodsName;

    @Override
    public ListParams toListParams() {
        ListParams listParams = toListParams(new String[]{"shopGoodsName"}, new String[]{"shop_goods_name"});
        listParams.getCondition().put("orderby", "create_date desc");
        return listParams;
    }

}
